package com.zy.domain;

import org.springframework.stereotype.Component;

@Component
public interface Car
{
    public default void run()
    {

    }
    /*private String name;
    private String color;

    public Car()
    {
        System.out.println("Car对象产生了！");
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getColor()
    {
        return color;
    }

    public void setColor(String color)
    {
        this.color = color;
    }

    @Override
    public String toString()
    {
        return "Car{" +
                "name='" + name + '\'' +
                ", color='" + color + '\'' +
                '}';
    }*/
}
